package com.hits.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.hits.dao.UserDao;
import com.hits.model.User;

public class UserServlet extends HttpServlet {
	
	public void login(HttpServletRequest request, HttpServletResponse response)
	{
		String email=request.getParameter("username");
		String password=request.getParameter("password");
		int type=1;
		UserDao userdao=new UserDao();
		User u = new User(email,password,type);
		User user = userdao.findUserInfo(u);
	}
}
